package com.qf.controller;


import com.qf.pojo.SysUser;
import com.qf.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class SysUserController {

    @Autowired
    private SysUserService sysUserService;


    @RequestMapping(value = "/findUser",method = RequestMethod.GET)
    public List<SysUser> findUser(){
        return this.sysUserService.findAllUser();
    }
}
